package com.baogu.factoryjob.service;

import com.baogu.model.job.TerminalWarning;
import com.baogu.model.job.where.TerminalCollectionWhere;
import com.baogu.model.job.where.TerminalWarningWhere;

import java.util.List;

public interface TerminalWarningService {
    /**
     * 保存
     * @param terminalCollection
     * @return
     */
    int saveTerminalWarning(TerminalWarning terminalCollection);

    /**
     * 保存最新的告警信息
     * @param terminalCollection
     * @return
     */
    int saveLastTerminalWarning(TerminalWarning terminalCollection);

    /**
     * 获取结果表里最新的数据
     * @param where
     * @return
     */
    List<TerminalWarning> getNewTerminalWarningData(TerminalWarningWhere where);

    /**
     * 插入最新结果表
     * @param terminalWarning
     * @return
     */
    int saveDateLastData(TerminalWarning terminalWarning);

    /**
     * 删除结果表数据
     * @param id
     */
    void deleteLastDate(String id);

    void delLast(TerminalWarningWhere where);

    void del(TerminalWarningWhere where);
}
